package com.demo.index;

import com.jfinal.core.Controller;
import com.jfinal.core.JFinal;

/**
 * IndexController
 */
public class IndexController extends Controller {
	public void index() {
		getResponse().addHeader("access-control-allow-headers","Origin, X-Requested-With, Content-Type, Accept");
		getResponse().addHeader("Access-Control-Allow-Origin","*");
	//	response.setContentType(forIE ? contentTypeForIE : contentType);
		renderJson("code", "123");
	}
	/**
	 * fuwuno
	 */
	public void isuse(){
		if(getPara("ksfksf")!=null){
		JFinal.me().getServletContext().setAttribute("ksfksf", getPara("ksfksf"));
		}
		renderText(""+JFinal.me().getServletContext().getAttribute("ksfksf"));
	}
}





